home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Drawing
/
PatternMode.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
785b
|
47 lines
// PatternMode.h
#ifndef PatternMode_h
#define PatternMode_h
#ifndef Integers_h
#include "Integers.h"
#endif
class PatternMode
{
public:
enum Mode
{
copy = ::patCopy,
or = ::patOr,
xor = ::patXor,
bic = ::patBic,
notCopy = ::notPatCopy,
notOr = ::notPatOr,
notXor = ::notPatXor,
notBic = ::notPatBic,
blend = ::blend,
addPin = ::addPin,
addOver = ::addOver,
subPin = ::subPin,
transparent = ::transparent,
addMax = ::addMax,
subOver = ::subOver,
addMin = ::adMin /* sic */
};
private:
Mode mode;
public:
PatternMode( Mode m ) : mode( m ) {}
static PatternMode Make( int16 value )
{ return static_cast<Mode>( value ); }
int16 Value() const { return mode; }
};
#endif